package com.yfeng.common.dao;

import java.util.List;

import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;


public interface IDao {
    public List query(String strSql, Param param) throws Exception;

    public List query(String strSql) throws Exception;

    public int getRowCount(String strSql, Param param) throws Exception;   
   
    
    public int getRowCount(String strSql) throws Exception;

    public int save(String strTable, Param param) throws Exception;

    public int saveBySql(String strSql, Param param) throws Exception;

    public int delete(String strTable, Param param) throws Exception;

    public int deleteBySql(String strSql, Param param) throws Exception;

    public int[] batchSave(String strTable, List l) throws Exception;
    
    public NamedParameterJdbcTemplate getNamedParameterJdbcTemplate() throws Exception;
   
}
